import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'autophone_method_channel.dart';

abstract class AutophonePlatform extends PlatformInterface {
  /// Constructs a AutophonePlatform.
  AutophonePlatform() : super(token: _token);

  static final Object _token = Object();

  static AutophonePlatform _instance = MethodChannelAutophone();

  /// The default instance of [AutophonePlatform] to use.
  ///
  /// Defaults to [MethodChannelAutophone].
  static AutophonePlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [AutophonePlatform] when
  /// they register themselves.
  static set instance(AutophonePlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<String> phoneAuto() {
    throw UnimplementedError('phoneAuto() has not been implemented.');
  }
}
